package com.lgc.demo.hashmapTest.myWriteHashMap;

public class Main {
    public static void main(String[] args){
        MyHashMap<String,Integer> map = new MyHashMap<>();
        map.put("a", 1); //成功并且key不存在，近回null
        map.put("b", 2);
        map.put("a", 11);//成功并且key已存在，近回old的value值
        map.put("a", 111);

        System.out.println(map.get("a"));

        System.out.println(map.get("b"));
    }

}
